﻿using Engine;
using Game;

namespace Mekiasm
{
    public class GlassPlate : ItemFlat
    {
        public static int Index;
        public GlassPlate() : base("玻璃板", MekiasmInit.GetFlatTexture(MekiasmInit.R1, "玻璃板"))
        {
            
        }

        public override bool OnUse(Ray3 aim, ComponentMiner componentMiner, TerrainRaycastResult? raycast)
        {
            return false;
        }

        public override void GenerateTerrainVertices(Block block, BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)
        {
            generator.GenerateCrossfaceVertices(block, value, x, y, z, Color.White, 0, geometry.GetGeometry(texture2D).SubsetOpaque);
        }

    }
}
